package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.Recharge;
import com.ruoyi.business.vo.RechargeListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeMapper extends BaseMapper<Recharge> {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Recharge record);

    Recharge selectByPrimaryKey(Long id);
    Recharge selectByOrderNo(String OrderNo);

    int updateByPrimaryKeySelective(Recharge record);

    int updateByPrimaryKey(Recharge record);

    IPage<RechargeListVO> selectPageList(@Param("page") Page page, @Param("createStartDate") String createStartDate, @Param("createEndDate") String createEndDate, @Param("uId") Integer uId, @Param("nike") String nike);

    List<RechargeListVO> selectList(@Param("createStartDate") String createStartDate, @Param("createEndDate") String createEndDate, @Param("uId") Integer uId, @Param("nike") String nike);
}